const routeArr = [{
  path: '/',
  hidden: true,
  redirect: 'dashboard',

},
{
  path: 'baseInfo',
  hidden: true,
  component: 'pages/CRM/views/baseInfo/index.vue',
  meta: {
    title: '基础信息'
  },
  children: [
    // 产品信息
    {
      path: 'product',
      hidden: true,
      component: 'pages/CRM/views/baseInfo/product/index.vue',
      meta: {
        title: '产品信息'
      },
      children: [{
        path: 'productDetail',
        name: 'productDetail',
        hidden: true,
        component: 'pages/CRM/views/baseInfo/product/detail/index.vue',
        meta: {
          title: '产品详情',
          activeMenu: 'product'
        }
      }]
    },
    // 终端管理
    {
      path: 'baseInfoTerminal',
      hidden: true,
      component: 'pages/CRM/views/baseInfo/terminal/index.vue',
      meta: {
        title: '终端管理'
      },
      children: [{
        path: 'baseInfoTerminalDetail',
        name: 'baseInfoTerminalDetail',
        hidden: true,
        component: 'pages/CRM/views/baseInfo/terminal/potential/details.vue',
        meta: {
          title: '终端详情',
          activeMenu: 'baseInfoTerminal'
        }
      }]
    },
    // 市场管理
    {
      path: 'marketManagement',
      hidden: true,
      component: 'pages/CRM/views/baseInfo/marketManagement/index.vue',
      meta: {
        title: '市场管理'
      },
      children: [{
        path: 'marketDetail',
        name: 'marketDetail',
        hidden: true,
        component: 'pages/CRM/views/baseInfo/marketManagement/detail/index.vue',
        meta: {
          title: '市场管理详情',
          activeMenu: 'marketManagement'
        }
      }]
    },
    {
      path: 'customer',
      hidden: true,
      component: 'pages/CRM/views/baseInfo/customer/index.vue',
      meta: {
        title: '合作客户'
      },
      children: [
        // 代理商
        {
          path: 'baseInfoAgent',
          hidden: true,
          component: 'pages/CRM/views/baseInfo/customer/agent/index.vue',
          meta: {
            title: '代理商'
          },
          children: [{
            path: 'createAgent',
            name: 'createAgent',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/agent/modules/create.vue',
            meta: {
              title: '代理新建',
              activeMenu: 'baseInfoAgent'
            }
          },
          {
            path: 'baseInfoAgentPotential',
            name: 'baseInfoAgentPotential',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/agent/details/potentialAgent.vue',
            meta: {
              title: '代理商详情',
              activeMenu: 'baseInfoAgent'
            }
          },
          {
            path: 'baseInfoAgentSigned',
            name: 'baseInfoAgentSigned',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/agent/details/signedAgent.vue',
            meta: {
              title: '代理商详情',
              activeMenu: 'baseInfoAgent'
            }
          }
          ]
        },
        // 签约配送商
        {
          path: 'contractedDistributor',
          hidden: true,
          component: 'pages/CRM/views/baseInfo/customer/distributors/index.vue',
          meta: {
            title: '签约配送商'
          },
          children: [{
            path: 'contractedDistributorsCreate',
            name: 'contractedDistributorsCreate',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/distributors/create/index.vue',
            meta: {
              title: '新建或编辑配送商',
              activeMenu: 'contractedDistributor'
            }
          },
          {
            path: 'contractedDistributorsDetail',
            name: 'contractedDistributorsDetail',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/distributors/detail/index.vue',
            meta: {
              title: '配送商详情',
              activeMenu: 'contractedDistributor'
            }
          }
          ]
        },
        // 商销详情
        {
          path: 'newDetails',
          name: 'newDetails',
          hidden: true,
          component: 'pages/CRM/views/baseInfo/customer/commercial/index.vue',
          meta: {
            title: '查询详情'
          },
          children: [{
            path: 'commercialnewDetails',
            name: 'commercialnewDetails',
            hidden: true,
            component: 'pages/CRM/views/baseInfo/customer/commercial/modules/newDetails.vue',
            meta: {
              title: '查询详情',
              activeMenu: 'newDetails'
            },
          }]
        }
      ]
    },
    // 潜在兼职
    {
      path: 'partTime',
      hidden: true,
      component: 'pages/CRM/views/baseInfo/partTime/index.vue',
      meta: {
        title: '潜在兼职'
      },
      children: [{
        path: 'baseInfoPartTimeDetail',
        name: 'baseInfoPartTimeDetail',
        hidden: true,
        component: 'pages/CRM/views/baseInfo/partTime/details/index.vue',
        meta: {
          title: '潜在兼职',
          activeMenu: 'partTime'
        },
      }]
    }
  ]
},
{
  path: 'chance',
  hidden: true,
  component: 'pages/CRM/views/chance/index.vue',
  meta: {
    title: '市场准入管理'
  },
  children: [{
    path: 'chanceDetail',
    name: 'chanceDetail',
    hidden: true,
    component: 'pages/CRM/views/chance/detail/index.vue',
    meta: {
      title: '市场准入详情',
      activeMenu: 'chance'
    }
  }]
},
{
  path: 'planManagement',
  hidden: true,
  component: 'pages/CRM/views/planManagement/index.vue',
  meta: {
    title: '营销规划'
  },
  children: [{
    path: 'detail',
    name: 'planDetail',
    hidden: true,
    component: 'pages/CRM/views/planManagement/finePlan/detail/index.vue',
    meta: {
      title: '精细招商规划',
      activeMenu: 'finePlan'
    }
  },
  {
    path: 'add',
    name: 'planAdd',
    hidden: true,
    component: 'pages/CRM/views/planManagement/finePlan/add/index.vue',
    meta: {
      title: '新建精细招商规划',
      activeMenu: 'finePlan'
    }
  },
  {
    path: 'addSignedPlan',
    name: 'signedPlanAdd',
    hidden: true,
    component: 'pages/CRM/views/planManagement/signedPlan/add/index.vue',
    meta: {
      title: '新建区域招商规划',
      activeMenu: 'signedPlan'
    }
  },
  {
    path: 'signedPlanDetail',
    name: 'signedPlanDetail',
    hidden: true,
    component: 'pages/CRM/views/planManagement/signedPlan/detail/index.vue',
    meta: {
      title: '区域招商规划',
      activeMenu: 'signedPlan'
    }
  },
  {
    path: 'publicityDetail',
    name: 'publicityDetail',
    hidden: true,
    component: 'pages/CRM/views/planManagement/plan/detail/index.vue',
    meta: {
      title: '区域招商规划',
      activeMenu: 'plan'
    }
  },
  {
    path: 'publicityDetail',
    name: 'publicityDetail1',
    hidden: true,
    component: 'pages/CRM/views/planManagement/plan/detail/index.vue',
    meta: {
      title: '精细招商规划',
      activeMenu: 'plan'
    }
  },
  {
    path: 'publicityDetail',
    name: 'publicityDetail2',
    hidden: true,
    component: 'pages/CRM/views/planManagement/plan/detail/index.vue',
    meta: {
      title: '终端直销规划',
      activeMenu: 'plan'
    }
  },
  {
    path: 'publicityDetail',
    name: 'publicityDetail3',
    hidden: true,
    component: 'pages/CRM/views/planManagement/plan/detail/index.vue',
    meta: {
      title: '商业营销规划',
      activeMenu: 'plan'
    }
  },
  {
    path: 'addDirectPlan',
    name: 'addDirectPlan',
    hidden: true,
    component: 'pages/CRM/views/planManagement/directPlan/add/index.vue',
    meta: {
      title: '新建终端直销规划',
      activeMenu: 'directPlan'
    }
  },
  {
    path: 'directPlanDetail',
    name: 'directPlanDetail',
    hidden: true,
    component: 'pages/CRM/views/planManagement/directPlan/detail/index.vue',
    meta: {
      title: '终端直销规划详情',
      activeMenu: 'directPlan'
    }
  },
  {
    path: 'addBusinessPlan',
    name: 'addBusinessPlan',
    hidden: true,
    component: 'pages/CRM/views/planManagement/businessPlan/add/index.vue',
    meta: {
      title: '新建商业营销规划',
      activeMenu: 'businessPlan'
    }
  },
  {
    path: 'businessPlanDetail',
    name: 'businessPlanDetail',
    hidden: true,
    component: 'pages/CRM/views/planManagement/businessPlan/detail/index.vue',
    meta: {
      title: '商业营销规划详情',
      activeMenu: 'businessPlan'
    }
  },
  ]
},

{
  path: 'marketing',
  hidden: true,
  component: 'pages/CRM/views/marketing/index.vue',
  meta: {
    title: '营销管理'
  },
  children: [{
    path: 'marketingPlan',
    hidden: true,
    component: 'pages/CRM/views/marketing/plan/index.vue',
    meta: {
      title: '营销任务分配'
    },
    children: [
      {
        path: 'detail',
        name: 'marketPlanDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/plan/detail/index.vue',
        meta: {
          title: '区域招商规划',
          activeMenu: 'marketPlan'
        }
      },
      {
        path: 'detail',
        name: 'marketPlanDetail1',
        hidden: true,
        component: 'pages/CRM/views/marketing/plan/detail/index.vue',
        meta: {
          title: '精细招商规划',
          activeMenu: 'marketPlan'
        }
      },
      {
        path: 'detail',
        name: 'marketPlanDetail2',
        hidden: true,
        component: 'pages/CRM/views/marketing/plan/detail/index.vue',
        meta: {
          title: '终端直销规划',
          activeMenu: 'marketPlan'
        }
      },
      {
        path: 'detail',
        name: 'marketPlanDetail3',
        hidden: true,
        component: 'pages/CRM/views/marketing/plan/detail/index.vue',
        meta: {
          title: '商业营销规划',
          activeMenu: 'marketPlan'
        }
      },
    ]
  },
  {
    path: 'taskAllocation',
    hidden: true,
    component: 'pages/CRM/views/marketing/task/allocation/index.vue',
    meta: {
      title: '营销任务分配',
    },
    children: [
      {
        path: 'detail',
        name: 'allocationDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/task/allocation/detail/index.vue',
        meta: {
          title: '任务分配',
          activeMenu: 'taskAllocation'
        }
      },
    ]
  },
  {
    path: 'taskConfirm',
    hidden: true,
    component: 'pages/CRM/views/marketing/task/confirm/index.vue',
    meta: {
      title: '营销任务确认',
    },
    children: [
      {
        path: 'detail',
        name: 'confirmDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/task/confirm/detail/index.vue',
        meta: {
          title: '任务确认',
          activeMenu: 'taskConfirm'
        }
      },
    ]
  },
  {
    path: 'taskAllocation',
    hidden: true,
    component: 'pages/CRM/views/marketing/task/allocation/index.vue',
    meta: {
      title: '营销任务分配',
    },
    children: [
      {
        path: 'detail',
        name: 'allocationDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/task/allocation/detail/index.vue',
        meta: {
          title: '任务分配',
          activeMenu: 'taskAllocation'
        }
      },
    ]
  },
  {
    path: 'taskFollow',
    hidden: true,
    component: 'pages/CRM/views/marketing/task/follow/index.vue',
    meta: {
      title: '营销任务跟进',
    },
    children: [
      {
        path: 'clueDetail',
        name: 'clueDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/task/follow/clueDetail/index.vue',
        meta: {
          title: '线索跟进',
          activeMenu: 'taskFollow'
        }
      },
      {
        path: 'clientDetail',
        name: 'clientDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/task/follow/clientDetail/index.vue',
        meta: {
          title: '客户跟进',
          activeMenu: 'taskFollow'
        }
      },
    ]
  },
  {
    path: 'cooperation',
    hidden: true,
    component: 'pages/CRM/views/marketing/cooperation/index.vue',
    meta: {
      title: '合作要素审核'
    },
    children: [{
      path: 'signedAgreement',
      hidden: true,
      component: 'pages/CRM/views/marketing/cooperation/signedAgreement/index.vue',
      meta: {
        title: '区域招商要素'
      },
      children: [{
        path: 'detail',
        name: 'signedAgreementDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/cooperation/signedAgreement/detail/index.vue',
        meta: {
          title: '区域招商要素详情',
          activeMenu: 'signedAgreement'
        }
      }]
    },

    {
      path: 'fineAgreement',
      hidden: true,
      component: 'pages/CRM/views/marketing/cooperation/fineAgreement/index.vue',
      meta: {
        title: '精细招商要素'
      },
      children: [{
        path: 'detail',
        name: 'fineAgreementDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/cooperation/fineAgreement/detail/index.vue',
        meta: {
          title: '精细招商要素详情',
          activeMenu: 'fineAgreement'
        }
      },
      {
        path: 'create',
        name: 'fineAgreementAdd',
        hidden: true,
        component: 'pages/CRM/views/marketing/cooperation/fineAgreement/add/index.vue',
        meta: {
          title: '新建精细招商要素',
          activeMenu: 'fineAgreement'
        }
      },
      ]
    },
    {
      path: 'businessAgreement',
      hidden: true,
      component: 'pages/CRM/views/marketing/cooperation/businessAgreement/index.vue',
      meta: {
        title: '商业营销要素'
      },
      children: [
        {
          path: 'businessAgreementDetail',
          name: 'businessAgreementDetail',
          hidden: true,
          component: 'pages/CRM/views/marketing/cooperation/businessAgreement/details/index.vue',
          meta: {
            title: '商业营销要素详情',
            activeMenu: 'businessAgreement'
          }
        }
      ]
    }
    ]
  },
  {
    path: 'matching',
    hidden: true,
    component: 'pages/CRM/views/marketing/matching/index.vue',
    meta: {
      title: '匹配终端配送'
    },
    children: [{
      path: 'regional',
      hidden: true,
      component: 'pages/CRM/views/marketing/matching/regional/index.vue',
      meta: {
        title: '区域招商匹配'
      },
      children: [{
        path: 'regionalDetail',
        name: 'regionalDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/matching/regional/details/index.vue',
        meta: {
          title: '区域招商匹配详情',
          activeMenu: 'regional'
        }
      }]
    }]

  },
  // 合作客情查询
  {
    path: 'cooperationInformation',
    hidden: true,
    component: 'pages/CRM/views/marketing/customer/index.vue',
    meta: {
      title: '合作客情查询'
    },
    children: [{
      path: 'enterprise',
      hidden: true,
      component: 'pages/CRM/views/marketing/customer/enterprise/index.vue',
      meta: {
        title: '企业代理查询'
      },
      children: [{
        path: 'potentialDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/enterprise/potentialAgent/details.vue',
        meta: {
          title: '企业代理详情',
          activeMenu: 'enterprise'
        }
      },
      {
        path: 'signedDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/enterprise/signedAgent/details.vue',
        meta: {
          title: '签约代理详情',
          activeMenu: 'enterprise'
        }
      }
      ]
    },
    {
      path: 'partTimeBigBag',
      hidden: true,
      component: 'pages/CRM/views/marketing/customer/partTimeBigBag/index.vue',
      meta: {
        title: '兼职大包查询'
      },
      children: [{
        path: 'potential',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/partTimeBigBag/details/potential.vue',
        meta: {
          title: '潜在兼职详情',
          activeMenu: 'partTimeBigBag'
        }
      },
      {
        path: 'signing',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/partTimeBigBag/details/signing.vue',
        meta: {
          title: '签约兼职详情',
          activeMenu: 'partTimeBigBag'
        }
      },
      ]
    },
    {
      path: 'serviceTerminal',
      hidden: true,
      component: 'pages/CRM/views/marketing/customer/terminal/index.vue',
      meta: {
        title: '服务终端查询'
      },
      children: [{
        path: 'potentialDetail',
        name: 'potentialDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/terminal/potential/details.vue',
        meta: {
          title: '潜在终端详情',
          activeMenu: 'serviceTerminal'
        }
      },
      {
        path: 'tradinglDetail',
        name: 'tradinglDetail',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/terminal/trading/details.vue',
        meta: {
          title: '交易终端详情',
          activeMenu: 'serviceTerminal'
        }
      }
      ]
    },
    {
      path: 'shangPin',
      hidden: true,
      component: 'pages/CRM/views/marketing/customer/shangPin/index.vue',
      meta: {
        title: '商销客户'
      },
      children: [{
        path: 'shangPinPotentialDetails',
        name: 'shangPinPotentialDetails',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/shangPin/details/potentialDetails.vue',
        meta: {
          title: '潜在商销客户详情',
          activeMenu: 'shangPin'
        }
      },
      {
        path: 'shangPinSigningDetails',
        name: 'shangPinSigningDetails',
        hidden: true,
        component: 'pages/CRM/views/marketing/customer/shangPin/details/signingDetails.vue',
        meta: {
          title: '签约商销客户详情',
          activeMenu: 'shangPin'
        }
      },

      ]
    }
    ]
  },

  ]
},

{
  path: 'marketingMaterial',
  hidden: true,
  component: 'pages/CRM/views/marketingMaterial/index.vue',
  meta: {
    title: '营销相关物料'
  },
  children: [{
    path: 'circleOfFriends',
    hidden: true,
    component: 'pages/CRM/views/marketingMaterial/circleOfFriends/index.vue',
    meta: {
      title: '朋友圈素材'
    },
    children: [{
      path: 'add',
      name: 'circleAdd',
      hidden: true,
      component: 'pages/CRM/views/marketingMaterial/circleOfFriends/management/add/index.vue',
      meta: {
        title: '新建朋友圈素材',
        activeMenu: 'circleManagement'
      }
    }]
  }]
},

// 回款与应收详情
{
  path: 'returnedRecords',
  hidden: true,
  component: 'pages/CRM/views/returnedRecords/index.vue',
  meta: {
    title: '货款票管理'
  },
  children: [{
    path: 'receivable',
    hidden: true,
    component: 'pages/CRM/views/returnedRecords/receivable/saleReceivable/index.vue',
    meta: {
      title: '应收统计'
    },
    children: [{
      path: 'saleReceivable',
      hidden: true,
      component: 'pages/CRM/views/returnedRecords/receivable/saleReceivable/index.vue',
      meta: {
        title: '直接应收'
      },
      children: [{
        path: 'receivableDetail',
        hidden: false,
        name: 'receivableDetail',
        component: 'pages/CRM/views/returnedRecords/receivable/saleReceivable/details/index.vue',
        meta: {
          title: '直接应收详情',
          activeMenu: 'saleReceivable'
        },
      }]
    },
    {
      path: 'indirectReceivable',
      hidden: true,
      component: 'pages/CRM/views/returnedRecords/receivable/saleReceivable/index.vue',
      meta: {
        title: '间接应收'
      },
      children: [{
        path: 'indirectReceivableDetail',
        hidden: false,
        name: 'indirectReceivableDetail',
        component: 'pages/CRM/views/returnedRecords/receivable/indirectReceivable/details/index.vue',
        meta: {
          title: '间接应收详情',
          activeMenu: 'indirectReceivable'
        },
      }]
    }
    ]
  },
  {
    path: 'inventory',
    hidden: true,
    component: 'pages/CRM/views/returnedRecords/inventory/index.vue',
    meta: {
      title: '库存管理'
    },
    children: [{
      path: 'details',
      name: 'distributoreReturnedRecords',
      hidden: true,
      component: 'pages/CRM/views/returnedRecords/inventory/details/index.vue',
      meta: {
        title: '进销存详情',
        activeMenu: 'inventory'
      },
    },
    {
      path: 'inventoryDetail',
      name: 'inventoryReturnedRecords',
      hidden: true,
      component: 'pages/CRM/views/returnedRecords/inventory/details/inventory.vue',
      meta: {
        title: '月度盘点详情',
        activeMenu: 'inventory'
      },
    }
    ]
  },
  {
    path: 'order',
    hidden: true,
    component: 'pages/CRM/views/orderAndReturned/index.vue',
    meta: {
      title: '订单发货'
    },
    children: [{
      path: 'detail',
      hidden: true,
      name: 'orderDetail',
      component: 'pages/CRM/views/orderAndReturned/order/detail/index1.vue',
      meta: {
        title: '订单详情',
        activeMenu: 'order'
      },
    }]
  }
  ]
},
// 配送商管理
{
  path: 'distributorManagement',
  hidden: true,
  component: 'pages/CRM/views/distributorManagement/index.vue',
  meta: {
    title: '配送商管理'
  },
  children: [{
    path: 'distributor',
    hidden: true,
    component: 'pages/CRM/views/distributorManagement/distributors/index.vue',
    meta: {
      title: '签约配送商'
    },
    children: [{
      path: 'distributorsCreate',
      name: 'distributorsCreate',
      hidden: true,
      component: 'pages/CRM/views/distributorManagement/distributors/create/index.vue',
      meta: {
        title: '新建或编辑配送商',
        activeMenu: 'distributor'
      }
    },
    {
      path: 'distributorsFileUpdate',
      name: 'distributorsFileUpdate',
      hidden: true,
      component: 'pages/CRM/views/distributorManagement/distributors/updateFile/index.vue',
      meta: {
        title: '完善资质',
        activeMenu: 'distributor'
      }
    },
    {
      path: 'distributorsDetail',
      name: 'distributorsDetail',
      hidden: true,
      component: 'pages/CRM/views/distributorManagement/distributors/detail/index.vue',
      meta: {
        title: '配送商详情',
        activeMenu: 'distributor'
      }
    }
    ]
  },
  {
    path: 'applyDistributors',
    hidden: true,
    component: 'pages/CRM/views/distributorManagement/applyDistributors/index.vue',
    meta: {
      title: '申请配送商'
    },
    children: [{
      path: 'applyDistributorsDetail',
      name: 'applyDistributorsDetail',
      hidden: true,
      component: 'pages/CRM/views/distributorManagement/applyDistributors/detail/index.vue',
      meta: {
        title: '申请配送商详情',
        activeMenu: 'applyDistributors'
      }
    }]
  }
  ]
},

{
  path: 'crmDictionary',
  hidden: true,
  component: 'pages/CRM/views/system/dictionary/index.vue',
  meta: {
    title: '字典管理'
  },
  children: [{
    path: 'crmDictionaryDetail',
    name: 'crmDictionaryDetail',
    hidden: true,
    component: 'pages/CRM/views/system/dictionary/detail/index.vue',
    meta: {
      title: '字典详情',
      activeMenu: 'crmDictionary'
    }
  }]
},
{
  path: 'audit',
  hidden: true,
  component: 'pages/CRM/views/audit/index.vue',
  meta: {
    title: '我的审批'
  },
  children: [{
    path: 'myStarted',
    hidden: true,
    component: 'pages/CRM/views/audit/myStarted/index.vue',
    meta: {
      title: '我发起的'
    },
    children: [{
      path: 'myStartedDetail',
      name: 'myStartedDetail',
      hidden: true,
      component: 'pages/CRM/views/audit/myStarted/detail/index.vue',
      meta: {
        title: '我发起详情',
        activeMenu: 'myStarted'
      }
    }]
  },
  {
    path: 'myDealWith',
    hidden: true,
    component: 'pages/CRM/views/audit/myDealWith/index.vue',
    meta: {
      title: '我处理的'
    },
    children: [{
      path: 'myDealWithDetail',
      name: 'myDealWithDetail',
      hidden: true,
      component: 'pages/CRM/views/audit/myDealWith/detail/index.vue',
      meta: {
        title: '我处理的详情',
        activeMenu: 'myDealWith'
      }
    }]
  },
  {
    path: 'copyToMe',
    hidden: true,
    component: 'pages/CRM/views/audit/copyToMe/index.vue',
    meta: {
      title: '抄送我的'
    },
    children: [{
      path: 'copyToMeDetail',
      name: 'copyToMeDetail',
      hidden: true,
      component: 'pages/CRM/views/audit/copyToMe/detail/index.vue',
      meta: {
        title: '抄送我的详情',
        activeMenu: 'copyToMe'
      }
    }]
  },
  {
    path: 'abnormalFlow',
    hidden: true,
    component: 'pages/CRM/views/audit/abnormalFlow/index.vue',
    meta: {
      title: '抄送我的'
    },
    children: [{
      path: 'abnormalFlowDetail',
      name: 'abnormalFlowDetail',
      hidden: true,
      component: 'pages/CRM/views/audit/abnormalFlow/detail/index.vue',
      meta: {
        title: '抄送我的详情',
        activeMenu: 'abnormalFlow'
      }
    }]
  }
  ]
},

{
  path: 'orderAndReturned',
  hidden: true,
  component: 'pages/CRM/views/orderAndReturned/index.vue',
  meta: {
    title: '订单管理'
  },
  children: [
    {
      path: 'distributorOrder',
      hidden: true,
      component: 'pages/CRM/views/orderAndReturned/order/index.vue',
      meta: {
        title: '直发配送商'
      },
      children: [{
        path: 'add',
        hidden: true,
        name: 'addOrder',
        component: 'pages/CRM/views/orderAndReturned/order/add/index.vue',
        meta: {
          title: '新建订单',
          activeMenu: 'distributorOrder'
        },
      },
      {
        path: 'detail',
        hidden: true,
        name: 'orderDetail2',
        component: 'pages/CRM/views/orderAndReturned/order/detail/index.vue',
        meta: {
          title: '订单详情',
          activeMenu: 'distributorOrder'
        },
      },
      ]
    },
    {
      path: 'terminalOrder',
      hidden: true,
      component: 'pages/CRM/views/orderAndReturned/order/index.vue',
      meta: {
        title: '直发终端'
      },
      children: [{
        path: 'add',
        hidden: true,
        name: 'addOrder1',
        component: 'pages/CRM/views/orderAndReturned/order/add/index.vue',
        meta: {
          title: '新建订单',
          activeMenu: 'terminalOrder'
        },
      },
      {
        path: 'detail',
        hidden: true,
        name: 'orderDetail3',
        component: 'pages/CRM/views/orderAndReturned/order/detail/index.vue',
        meta: {
          title: '订单详情',
          activeMenu: 'terminalOrder'
        },
      }
      ]
    },
    {
      path: 'agentOrder',
      hidden: true,
      component: 'pages/CRM/views/orderAndReturned/order/index.vue',
      meta: {
        title: '直发代理'
      },
      children: [{
        path: 'add',
        hidden: true,
        name: 'addAgentOrder',
        component: 'pages/CRM/views/orderAndReturned/order/add/index.vue',
        meta: {
          title: '新建订单',
          activeMenu: 'agentOrder'
        },
      },
      {
        path: 'detail',
        hidden: true,
        name: 'agentOrderDetail',
        component: 'pages/CRM/views/orderAndReturned/order/detail/index.vue',
        meta: {
          title: '订单详情',
          activeMenu: 'agentOrder'
        },
      },
      ]
    },
    {
      path: 'businessOrder',
      hidden: true,
      component: 'pages/CRM/views/orderAndReturned/order/index.vue',
      meta: {
        title: '直发商销客户'
      },
      children: [{
        path: 'add',
        hidden: true,
        name: 'addBusinessOrder',
        component: 'pages/CRM/views/orderAndReturned/order/add/index.vue',
        meta: {
          title: '新建订单',
          activeMenu: 'businessOrder'
        },
      },
      {
        path: 'detail',
        hidden: true,
        name: 'businessOrderDetail',
        component: 'pages/CRM/views/orderAndReturned/order/detail/index.vue',
        meta: {
          title: '订单详情',
          activeMenu: 'businessOrder'
        },
      },
      ]
    },
  ]
},

// 商业流向
{
  path: 'businessFlow',
  hidden: true,
  component: 'pages/CRM/views/businessFlow/index.vue',
  meta: {
    title: '商业流向'
  },
  children: [{
    path: 'flowImport',
    hidden: true,
    component: 'pages/CRM/views/businessFlow/flowImport/index.vue',
    meta: {
      title: '商业流向'
    },
    children: [{
      path: 'create',
      hidden: true,
      name: 'create',
      component: 'pages/CRM/views/businessFlow/flowImport/create/index.vue',
      meta: {
        title: '导入流向数据',
        activeMenu: 'flowImport'
      },
    },
    {
      path: 'straightCreate',
      hidden: true,
      name: 'straightCreate',
      component: 'pages/CRM/views/businessFlow/flowImport/create/straightCreate.vue',
      meta: {
        title: '导入流向数据',
        activeMenu: 'flowImport'
      },
    },
    {
      path: 'details',
      name: 'businessFlowDetails',
      hidden: true,
      component: 'pages/CRM/views/businessFlow/flowImport/details/index.vue',
      meta: {
        title: '导入流向数据',
        activeMenu: 'flowImport'
      },
    }
    ]
  },
  {
    path: 'flowData',
    hidden: true,
    component: 'pages/CRM/views/businessFlow/flowData/index.vue',
    meta: {
      title: '流向数据'
    },
    children: [{
      path: 'details',
      hidden: true,
      name: 'details',
      component: 'pages/CRM/views/businessFlow/flowData/details/index.vue',
      meta: {
        title: '流向数据详情',
        activeMenu: 'flowData'
      },
    }]
  }

  ]
},

// 配送商库存
{
  path: 'inventory',
  hidden: true,
  component: 'pages/CRM/views/inventory/index.vue',
  meta: {
    title: '配送商库存'
  },
  children: [{
    path: 'distributorInventory',
    component: 'pages/CRM/views/inventory/distributors/index.vue',
    meta: {
      title: '配送商库存'
    },
    children: [{
      path: 'details',
      name: 'inventoryDistributorsDetails',
      hidden: true,
      component: 'pages/CRM/views/inventory/distributors/details/index.vue',
      meta: {
        title: '配送商详情',
        activeMenu: 'distributorInventory'
      },
    },
    {
      path: 'inventoryDetail',
      name: 'inventoryDetail',
      hidden: true,
      component: 'pages/CRM/views/inventory/distributors/details/inventory.vue',
      meta: {
        title: '月度盘点详情',
        activeMenu: 'distributorInventory'
      },
    }
    ]
  }]
},
// 内控管理
{
  path: 'internalControl',
  hidden: true,
  component: 'pages/CRM/views/internalControl/index.vue',
  meta: {
    title: '内控管理'
  },
  children: [
    {
      path: 'finance',
      component: 'pages/CRM/views/internalControl/finance/index.vue',
      meta: {
        title: '财务工作台'
      },
      children: [{
        path: 'credit',
        component: 'pages/CRM/views/internalControl/finance/credit/index.vue',
        meta: {
          title: '信用管理'
        },
        children: [{
          path: 'distributeCreditDetail',
          name: 'distributeCreditDetail',
          component: 'pages/CRM/views/internalControl/finance/credit/detail/distributeCreditDetail.vue',
          meta: {
            title: '配送商信用详情'
          },
        },
        {
          path: 'agentCreditDetail',
          name: 'agentCreditDetail',
          component: 'pages/CRM/views/internalControl/finance/credit/detail/agentCreditDetail.vue',
          meta: {
            title: '代理信用详情'
          },
        },
        {
          path: 'sellerCreditDetail',
          name: 'sellerCreditDetail',
          component: 'pages/CRM/views/internalControl/finance/credit/detail/sellerCreditDetail.vue',
          meta: {
            title: '商销客户信用详情'
          },
        }
        ]
      }]
    },
    {
      path: 'qualityControl',
      component: 'pages/CRM/views/internalControl/qualityControl/index.vue',
      meta: {
        title: '客户资质'
      },
      children: [
        {
          path: 'customerQualification',
          component: 'pages/CRM/views/internalControl/qualityControl/customerQualification/index.vue',
          meta: {
            title: '客户资质'
          },
          children: [
            {
              path: 'customerDistributorDetail',
              name: 'customerDistributorDetail',
              hidden: true,
              component: 'pages/CRM/views/internalControl/qualityControl/customerQualification/detail/distributorDetail/index.vue',
              meta: {
                title: '配送商详情',
                activeMenu: 'customerQualification'
              },
            },
            {
              path: 'customerTerminalDetail',
              name: 'customerTerminalDetail',
              hidden: true,
              component: 'pages/CRM/views/internalControl/qualityControl/customerQualification/detail/terminalDetail/index.vue',
              meta: {
                title: '终端详情',
                activeMenu: 'customerQualification'
              },
            },
            {
              path: 'customerAgentDetail',
              name: 'customerAgentDetail',
              hidden: true,
              component: 'pages/CRM/views/internalControl/qualityControl/customerQualification/detail/agentDetail/index.vue',
              meta: {
                title: '代理详情',
                activeMenu: 'customerQualification'
              },
            },
            {
              path: 'customerSellerDetail',
              name: 'customerSellerDetail',
              hidden: true,
              component: 'pages/CRM/views/internalControl/qualityControl/customerQualification/detail/sellerDetail/index.vue',
              meta: {
                title: '商销客户详情',
                activeMenu: 'customerQualification'
              },
            }
          ]
        }
      ]
    }
  ]
},

//营销目标
{
  path: 'saleTarget',
  hidden: true,
  component: 'pages/CRM/views/saleTarget/index.vue',
  meta: {
    title: '营销目标'
  },
  children: [
    {
      path: 'targetManage',
      hidden: true,
      component: 'pages/CRM/views/saleTarget/targetManage/index.vue',
      meta: {
        title: '目标管理'
      },
      children: [
        {
          path: 'targetManageCreate',
          name: 'targetManageCreate',
          hidden: true,
          component: 'pages/CRM/views/saleTarget/targetManage/create/index.vue',
          meta: {
            title: '新建营销目标',
            activeMenu: 'targetManage'
          },
        },
        {
          path: 'targetManageChange',
          name: 'targetManageChange',
          hidden: true,
          component: 'pages/CRM/views/saleTarget/targetManage/change/index.vue',
          meta: {
            title: '调整营销目标',
            activeMenu: 'targetManage'
          },
        },
        {
          path: 'targetManageDetail',
          name: 'targetManageDetail',
          hidden: true,
          component: 'pages/CRM/views/saleTarget/targetManage/detail/index.vue',
          meta: {
            title: '营销目标详情',
            activeMenu: 'targetManage'
          },
        }
      ]
    },
    {
      path: 'targetComplete',
      hidden: true,
      component: 'pages/CRM/views/saleTarget/targetComplete/index.vue',
      meta: {
        title: '目标完成情况'
      },
      children: [

        {
          path: 'targetCompleteDetail',
          name: 'targetCompleteDetail',
          hidden: true,
          component: 'pages/CRM/views/saleTarget/targetComplete/detail/index.vue',
          meta: {
            title: '目标完成情况详情',
            activeMenu: 'targetComplete'
          },
        }
      ]
    }
  ]
},

// 营销信息采编
{
  path: 'editorial',
  hidden: true,
  component: 'pages/CRM/views/editorial/index.vue',
  meta: {
    title: '营销意向采编'
  },
  children: [{
    path: 'advanceAgent',
    hidden: true,
    component: 'pages/CRM/views/editorial/agent/index.vue',
    meta: {
      title: '推荐代理商'
    },
    children: [{
      path: 'create',
      hidden: true,
      component: 'pages/CRM/views/editorial/agent/modules/create.vue',
      meta: {
        title: '新建',
        activeMenu: 'agent'
      }
    },
    {
      path: 'enterpriseDetail',
      hidden: true,
      component: 'pages/CRM/views/editorial/agent/details/enterprise.vue',
      meta: {
        title: '企业代理详情',
        activeMenu: 'agent'
      }
    },
    {
      path: 'partTimeDetail',
      hidden: true,
      component: 'pages/CRM/views/editorial/agent/details/partTime.vue',
      meta: {
        title: '兼职大包详情',
        activeMenu: 'agent'
      }
    }
    ]
  }]
},

// 工作看板

{
  path: 'statistics',
  hidden: true,
  component: 'pages/CRM/views/statistics/index.vue',
  meta: {
    title: '工作看板'
  },
  children: [{
    path: 'subsidiary',
    hidden: true,
    component: 'pages/CRM/views/statistics/subsidiary/index.vue',
    meta: {
      title: '营销明细'
    },
    children: [{
      path: 'subsidiaryDetails',
      hidden: true,
      component: 'pages/CRM/views/statistics/subsidiary/details/index.vue',
      meta: {
        title: '营销明细详情',
        activeMenu: 'subsidiary'
      }
    }]
  }]
}

]

export default routeArr
